﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Infratructure
{
    public interface IRepository <T>
    {

        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="t">参数</param>
        /// <returns>影响行数</returns>
        Task<int> Addway(T t);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="t">参数</param>
        /// <returns>影响行数</returns>
        Task<int> Updateway(T t);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="t">参数</param>
        /// <returns>数据</returns>
        Task<T> GetValue(long Id);
        /// <summary>
        /// 获取列表
        /// </summary>
        /// <returns>查询条件</returns>
        IQueryable<T> GetAll();


    }
}
